#!/bin/sh

ver_new="$1"
ver_old="$2"

if [ "$(apk version -t "$ver_old" "6.4.1-r1")" = "<" ]; then
	chown elastico:elastico /var/log/elasticsearch/error.log 2>/dev/null
	chown elastico:elastico /var/log/elasticsearch/*/error.log 2>/dev/null
fi

exit 0
